How do I reinstall Yosemite on my retina MacBook Pro when the only disk option to choose is Recovery HD and it is locked?

10-11  Source: Network gathering  Views:3 

I was trying to install windows 8 on boot camp but it said the disk couldn't be partitioned because some of the files couldn't be moved. So I went into disk utility and selected my HD (the second option) and clicked erase but I went super quick and I believe there was an error. Now I am trying to reinstall OS X Yosemite but when I click on "Re-install" Yosemite the only two options for where I want to install it are my recovery HD (which is 650MB total) and my Wininstall bootable windows USB. I don't know if I did something serious or how to reinstall Yosemite when I can't select or do anything with the first main Macintosh HD option in Disk Utility. Please help!
Install or Reinstall OS X from Scratch
Be sure you backup your files to an external drive or second internal drive because the following procedure will remove everything from the hard drive.
Boot to the Recovery HD:
Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
Erase the hard drive:
  1. Select Disk Utility from the main menu and click on the Continue button.
  2. After DU loads select your startup volume (usually Macintosh HD) from the
      left side list. Click on the Erase tab in the DU main window.
  3. Set the format type to Mac OS Extended (Journaled.) Optionally, click on
      the Security button and set the Zero Data option to one-pass. Click on
      the Erase button and wait until the process has completed.
  4. Quit DU and return to the main menu.
Reinstall OS X: Select Reinstall OS X and click on the Install button.
Note: You will need an active Internet connection. I suggest using Ethernet if possible
           because it is three times faster than wireless.
Related articles