Reconciliation of carbon and oxygen fluxes in the upper ocean