block: add bio_has_data() to detect whether a bio carries data or not