This is the crux of the matter--time. The temperature obtained by equating the heat gained by the pasta with the heat lost by the water is only for a final equilibrium state (i.e., heat is no longer exchanged) in an adiabatic system, which you do not have if the water is being heated by the...