Write error usually occurs when there are some very specific causes like:
The CD/DVD burner you use has a weak laser or doesn't get enough power, or the cable is faulty. For the last two, you can check by yourself and replace the cables.
The file that you added to the project is locked by another process, therefore access isn't allowed.
The CD/DVD is scratched and the laser can't write to the designated area.
You need to check all of these to eliminate the cause to the issue.