The average value of this current waveform can be calculated as the area during the ON of the MOSFET.
The area below the waveform is equal to the area of a trapezoid.
On the last equation, if we remember the current waveform of the inductor we can understand that the difference between max. current (ILmax) and half of the ripple current (ΔIL/2) is equal to the output current (IOUT).