f2fs: check read only condition before beginning write out