write() method redirects a sequence of blocks to write_all_blocks() meth...

Small changes to implement the write() functionality discussed in #24