call the freeSlot when finish a task. Otherwise the queuing task can not
get free slot to run