I think replacing the entire engine may be a bit drastic, no? If it is a cracked head, you could probably find one at a junk yard for fairly cheap and rebuild it. If it's a mildly warped head you could have it resurfaced (ground flat), and rebuilt. If it's a head gasket, then replace the head...