ばかりに
bakarini

Adverb

1. (simply) because; on account of

Usually Written in Kana
最後 さいご めを おこたったばかりに、画竜 がりょう点睛 てんせい くはめになってしまったね。
saigono tsumeo okotattabakarini garyōtensēo kaku hameni natte shimattane.
You kept putting off working on the fine details on this project so it ended up lacking the finishing touches.
Adverb

2. as if to; (as though) about to

Usually Written in Kana
Related to ばかり