Joint Rate Control and Spectrum Allocation under Packet Collision Constraint in Cognitive Radio Networks