The Optimality of Blocking Designs in Equally and Unequally Allocated Randomized Experiments with General Response