Write bytes to fobj if we open it in 'wb' mode