Restore image on board using flashing from sd card

I’ve made a mistake, copied file into the board’s OS (wrote the entire OS kernel) and now its not loading. So I decided to update OS and followed steps such as downloading image and writing it to the micro SD card. Then I put card into beaglebone black and pushed the button and only after that plugged in the USB cable (for power). The porblem is that it never finishes the flashing image. (LED’s are always blinking).

How can I restore my system? And what am i doing wrong?