how do I get everything back to normal (partition issue)
Try using cmd + R during startup and booting to the Recovery HD.  

Booting to Recovery HD.

Open up DiskUtility from the menu and you should be able to access the drives and re-partition them and restore the OS again.