Note: in this type of problems it is often not possible to write the equation describing whole process before checking details.
It is obvious at the beginning hot water will cool down and the ice will heat up. Depending on their relative amounts the end result can be either just liquid water with T≥0°C, just a solid with T≤0°C, or an ice/water mixture with T=0°C. Each of these cases is described by a slightly different equation and you can't say beforehand which one of the formulas is the right one*
The best approach is to do the problem stepwise. First - when you mix cold ice and hot water ice heats up, water cools down. Find out how much heat is required to heat up the ice to the melting point. Found out how much heat is the water capable of giving away. Is there enough heat to heat up ice to 0°C? If so, it was heated and now you have ice ready to melt and cooled down water (you don't need to find its temperature, it is enough to just subtract the heat used to heat up the ice from the amount of heat water had). If there was not enough heat to heat up the ice, you have some cold ice (T<0°C) and water ready to freeze. Now proceed further - depending on which case you are dealing with either ice will melt, or water will freeze, and you have to again compare energies involved to find out how will the process end.
*actually you can describe the ice/water mixture with the system of equations, including not only energy balance, but also mass balance, then the equations will be the same each time, but it doesn't make finding the solution much easier, as the math becomes more involved