write file w -->wb