The heat gained by the ice melted the ice and raised the temperature of the melted ice from its initial temperature to the final temperature of the water.
This heat gained by the ice is both used to break the intermolecular forces in ice to form water, as well as to raise the temperature of the water to it's final temperature.