do all required operations for file creation (no additional checking or do...except required). New file will be created if there is no such file at the moment or
file will be overwritten if it already exists.
If you need to append existing file you should use
FM_APPEND parameter instead of FM_WRITE.