Fixed io_default/write crash and malfunction