iwrite, for write