Hadronic axion window and the big bang nucleosynthesis