gio2: wrap OutputStream#write