What happens below the wire: the weight of the two blocks (about 98 N) acts on the ice through the very small area of contact of the thin wire, so the pressure on the ice just below the wire is very large. The melting point of ice is lowered when the pressure on it increases, so the ice just below the wire melts even though it is at about 0 ∘C. The wire sinks into the water formed.
What happens above the wire: the water squeezed round to the top of the wire is no longer under the extra pressure. Its melting point returns to normal and it freezes again, sealing the cut behind the wire.
So the wire slowly works its way down through the slab while the ice closes up above it, and the slab stays in one piece. This melting under increased pressure followed by refreezing when the pressure is removed is called regelation.
Everyday example: skating. The pressure under the narrow blades of the skates melts a thin layer of ice or snow; this water acts as a lubricant so that the skater glides, and it freezes again once the blade has passed.