fixed problem with _write() in printf()