pipe input data from stdin, to through to write stream