James Balfour, 4th of Pilrig — (1774-1860)