CodeWarrior does not have a library function for writing to flash. However, this sort of question has been asked many times in the forums. If you use the search box at the lower left of this web page, you can search and find one of several forum threads on the subject, along with the source code to write to flash.
---Tom