If the personal property of a testator is insufficient for full payment of his general legacies, so much of his real property not specifically devised as shall be necessary for payment of the balance shall be sold and the proceeds used for such payment unless the will shall contain an express direction to the contrary.