How to show the author of Blocked users's Content as anonymous in Drupal 7?
You may use

function theme_username($variables)


https://api.drupal.org/api/drupal/includes%21theme.inc/function/theme_username/7.x

$username = $variables['name'];

Check if user blocked 

$variables['name'] = 'anonymous';