Inmates sentenced for assaulting fellow inmate