hint: I guess that your sense of convex here is for the domain rather than the function. So let $A=(x_1,x_2,...,x_n)$ and $B=(y_1,y_2,...,y_n)$ be $2$ solution points of the above inequality, you wish to show any point of the segment $\bar{AB}$ is also a solution point. So let $P = At+ (1-t)B$ with $0 \le t \le 1$. We have: $a_0 + \displaystyle \sum_{i=1}^n \left(a_i(tx_i+(1-t)y_i)\right)= a_0 + t\displaystyle \sum_{i=1}^n a_ix_i + (1-t)\displaystyle \sum_{i=1}^n a_iy_i\le a_0 + t(b-a_0) + (1-t)(b-a_0) = a_0+b-a_0 = b$. Thus $P$ is a solution of the inequality and you're done-which means the set of solutions is convex ( I think this means the function is convex in your sense )