Implemented write; need to add block chaining feature