add writeBlockData method
Merge pull request #2 from jonathanstowe/master

add writeBlockData method