oss: handle write(2) returned value properly
oss: latency should not be changed after testing
oss: test_drain may fail