add implementation for sakhadb_file_write() routine