You could consider each post to have a 'true' average rating which you zero in on as more users vote on it. If we consider that the votes on each post come from a set of all possible votes that could have been cast that have a 'true' mean $\mu$ and standard deviation $\sigma$, then your average of the votes actually cast can be considered as an estimator of the true value. This estimator can be more or less accurate, depending on the number of votes cast. So your question is "how do I take account of the inaccuracies of my measured averages in the ranking of posts?"
We can solve this with a little math. Let vote $i$ be denoted $x_i=1,\dots,5$. Start by giving each post a rating of 3, so $x_1=3$. Then for each subsequent rating calculate the mean
$$\mu_{(n)} = \frac{1}{n}\sum_{i=1}^n x_i$$
and the sample standard deviation
$$\sigma_{(n)} = \frac{1}{n-1} \sum_{i=1}^n (x_i - \mu_{(n)})^2$$
Then the standard deviation of your measured mean $\mu_{(n)}$ (which is a measure of its accuracy) is given by
$$\hat{\sigma}_{(n)} = \frac{\sigma_{(n)}}{\sqrt{n}}$$
i.e. the quality of your estimate of the true mean increases as the number of votes increases, which is what you'd expect.
To translate this into a ranking, note that knowing the standard deviation of the mean gives you an approximate confidence interval for the mean. In particular, you can calculate a minimum value for the true mean, with a certain level of confidence. A 95% confident estimate for the minimum value of the mean is given by $\mu_{(n)} - 1.64\hat{\sigma}_{(n)}$. Loosely translated, you can be 95% sure that the true mean is above $\mu_{(n)} - 1.64\hat{\sigma}_{(n)}$.
Ranking your posts by this quantity rather than by the measured mean naturally takes into account your uncertainty for posts with only a small number of votes.
One valid criticism of this scheme is that it is expensive to recalculate the mean and variance every time someone submits a vote. You may find the following on-line algorithms for calculating mean and variance useful: http://en.wikipedia.org/wiki/Algorithms_for_calculating_variance#On-line_algorithm