aboot: Report error if sparse image is flashed incorrectly

Change-Id: I1ebb4766ee441c1198604ea3045ac2d6448868bd
diff --git a/app/aboot/aboot.c b/app/aboot/aboot.c
index 5eef029..6ee26a3 100644
--- a/app/aboot/aboot.c
+++ b/app/aboot/aboot.c
@@ -691,8 +691,13 @@
 		}
 	}
 
-    dprintf(SPEW, "Wrote %d blocks, expected to write %d blocks\n",
-             total_blocks, sparse_header->total_blks);
+	dprintf(INFO, "Wrote %d blocks, expected to write %d blocks\n",
+					total_blocks, sparse_header->total_blks);
+
+	if(total_blocks != sparse_header->total_blks)
+	{
+		fastboot_fail("sparse image write failure");
+	}
 
 	fastboot_okay("");
 	return;