But won't this wipe everything off the hard drive to zero so I have to start again from scratch as if the computer was new again?
No. Partitioning on Mac OS X 10.6 and later is allowed if you have sufficient free space. Just run it while booted into the Mac normally from Disk Utility in Applications -> Utilities. It is recommended of course you backup your data before you begin as a marginal hard drive could fail anyway.
That is outrageous if Apple is selling computers that are effectively faulty! Why did they not do a product recall if such an essential feature as disk reading/writing is faulty?
It is not Apple's fault that Sony messed up everyone, including car CD player manufacturers when putting the rootkit on its music CDs along with the BMG.
And the issue happens, on random machines, some have no trouble whatsoever. It is very difficult to issue a recall, when the issue entirely random and impossible to isolate. This issue has been present not only on Apple's computers, but PCs as well.
I just managed to burn a DVD -R without any problems this time; then I tried a DVD -RW - and the same problem occurred - it tells me the disk is 'locked', but when I go to 'disk info' I cannot unlock it as it's greyed out.
Follow these directions to rewrite:
Disk Utility 12.x: Erase a disk, CD, or DVD
Note, only DVD-RAM offers hard disk like rewrites, where you can choose what to delete and write over.
Both DVD-R and DVD-RW also offer write multi-session mode, which doesn't allow you to write over the same data that had already been burnt, but rather allows you to burn tracks that have not yet been burnt. That's documented here:
Disk Utility 12.x: Record on a recordable CD more than once
The error code can be the Sony issue, it can also be dust in the drive, it can also be due to one of the items documented on my FAQ*:
http://www.macmaps.com/cdrfailure.html
* Links to my pages may give me compensation.