Implemented Write functions
Implemented bulk erase