Added tests for return value of gridfile_write_buffer and added comments of return value on gridfs.h