Show contact form in block only, not page?
You can use the module Webform for contact forms. It comes with the option to make it available as a block. Here's a quick screenshot of the option:



You can also add other function like email notification, AJAX, template for confirmation page, etc. It's a highly customizable module, very recommended.