added get_write_buffer call. copied directly from dimes and dataspaces.