There is a balance icon near the top of the trade window, in the middle, which will add or remove enough gold (if available) to balance out the 2 sides of the trade.