A sharp estimate of the binomial mean absolute deviation with applications