Implemented _write for CuckooFS