implemented fifo command 'W'