Transient analysis of a finite-capacity queueing model with balking and repair periods