BAM: A block-based Bayesian method for detecting genome-wide associations with multiple diseases