You can't. On the other hand, you can create a multisession CD or DVD that put the "right" data in the other session. But the "wrong" data will stay there forever. Well, unless you destroy the disc. Moreover, this don't work on audio CDs because all CD players can only play the first session.
If you are talking about CD-RW/DVD-RW, then it could work. You need a special software for overwrite a specific file or track. It could be a lot easier if you just erase the whole disc and start all over again.