Yes you are correct, WRITE as well as WRITECODE work the same. All you have to do is place DEFINE_WRITE 1 at the start of your code and it will do the task for you.