Could you please try following and let me know if this helps you.
for file in *.txt
do
awk '{if($2==""){$2=Q};if($2){Q=$2};print}' $file > tmp_file
mv tmp_file $file
done
Also if above doesn't meet your requirement please let us know complete details about your requirement to help you, hope this helps.
NOTE: Also try to execute this within TEST environment for few files before running it in actual environment if All is Well with test then go for actual environment please.