Dear student,
In PN junction diode instead of having deficiency of hole and excess of electron on negative and positive side respectively but there is no flow of same from either side to another side because the potential difference between these two sides of diode is less than the potential difference barrier set up at the junction which results in hindrance if movement of electrons and hole from one side to other.