fs: introduce write_begin, write_end, and perform_write aops