write to temp chunk size fixed