Use elephant bird API to write thrift serialized blocks.