a little fix(write)