Flashing an ESN is actually illegal... Chances are, you wrote in the wrong section of NAND and it corrupted the system image. Try running a PC36IMG.zip to restore it to factory or run an RUU. But chances are, depending what storage address you actually overwrote, you're going to be screwed. Sorry.