s3: Use cli_writeall instead of cli_write