If I put the PORTb.6 = 1 loop after the ON INTERRUPT statement it works fine???
All I can say is sometimes we get lucky....

Like in the beginning of your code
The first 3 flashes work fine using HIGH PORTB.6
the data latch was clear. That evidently is happening in your ISR.