Heating the solar wind by a magnetohydrodynamic turbulent energy cascade