Re-fine "write" command.