yes, heat transfer stops when the temperature is equal, and if you have no losses to or additions from the outside, total energy remains constant.
For a rough take on it:
Say you have a naturally aspirated 4cyl engine with 2.3L displacement, 90mm bore, 90mm stroke. The total mass in a cylinder after firing might be about 0.0072kg (air+fuel). Let's pick a temperature of about 4000C just for grins, and a peak firing pressure of 123kPa. TDC volume is 0.072L. (that temp is too high, but it's fine for demonstration purposes)
take your cylinder, time 0 you have a mass M0 of combustion products at temp T0 and pressure P0. You can probably get close enough for your purposes by considering the combustion products to be simply hot air. The total energy inside your cylinder is U0 = Cv.air * M0 * T0
U0 = (1.0035 kJ/kg*K) * (0.0072 kg) * (4273 K)
U0 = 30.8kJ
Add some liquid water - say 3g of it at 50C, and solve for the new temperature... total U of the system is a bit higher than it had been, since the water had some heat when it was added (4.1kJ added - new total is 34.9kJ).
first the water must be heated to boiling. in heating it, you transfer 0.63kJ from the air to the water.
next the water boils. in boiling it, you transfer 6.8kJ from the air to the water.
now you've got 3g of steam at 100C and 7.2g of air at 3246K. They'll reach equilibrium when the temperatures are equal. At 100C, it takes 2.08 kJ to raise the temperature of 1 kg of steam by 1K. If you use that value as constant, the equilibrium temperature you get is about 1915K.
Now you've got a ~0.072L container with 3g of steam and 7.2g of air inside, at ~1915K. The pressure contribution of the air would be 55kPa, and that of the steam would be 37kPa, so you would have lost about 31kPa of cylinder pressure despite having added mass and a bit of energy.