Bidirectional Learning for Offline Model-based Biological Sequence Design