The following code should work for small file:
var oneDrive = await serviceClient!.Users[oneDriveUser].Drive.GetAsync();
or
var oneDrive = await serviceClient!.Me.Drive.GetAsync();
then:
await serviceClient.Drives[oneDrive!.Id].Items["root"].ItemWithPath(itemPath).Content.PutAsync(fileStream);