Revert "Fix for TRQ-2129: system call write fail if writing too large amounts of data."

This reverts commit 290a61b0bf4c90dd04d80a4d97370078e83893c9.