Quenching of hadron spectra due to the collisional energy loss of partons in the quark-gluon plasma