Does it work to blog in order to market oneself on the job market?
For sure. A well-done blog gives the reader a chance to get to know you better than at a job interview, and in more depth (if they are interested readers, that is).
And if you want to come across as knowledgeable in a field that you specialize in…yes, then it works great to write relevant posts in your blog. The posts should be well constructed and with relevant information, though.