User blog comment:Ikosarakt1/My Turing machine programs/@comment-25418284-20130328070702

Here's the last one in only 6 states:

0           _ * * halt 0           1 * * input_right input_right _ * r output_right input_right 1 * r * output_right _ 1 r data output_right 1 * r * output_left _ * l input_left output_left 1 * l * input_left  _ * r data input_left  1 * l * data        _ 1 l output_left data        1 _ r 0

The erasing and writing are combined into one state.