Thermoelectricity and heat balance in a metal/dot/metal junction