Fixed bug in writing for blocks, should be ‘r+’ not ‘a’. r/w interface for blocks now supports slices of blocks