removed unnecessary allocations from pipe_fwrite_datum()