You may need to install a driver for the new LG DVD writer.
If a disc did not come with it, you can download the correct driver from the LG website:
What type of cable connection are you using?
Have you tried connecting to a different port on the iMac?
Can you test the DVD writer on a different computer?