iOS "stuck" while erasing
This should not happen. What you can do is, press and hold the home and power key for 10 seconds. The device will enter recovery mode and now you can connect to itunes and install the iOS operating system from scratch.